package com.shequnsiweiapp;

import android.app.Application;

import com.facebook.react.ReactApplication;
import io.realm.react.RealmReactPackage;
import com.yunpeng.alipay.AlipayPackage;
import com.brentvatne.react.ReactVideoPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.imagepicker.ImagePickerPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.keyee.datetime.RCTDateTimePickerPackage;
import com.reactnative.ivpusic.imagepicker.PickerPackage;
import com.yunpeng.alipay.AlipayPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.brentvatne.react.ReactVideoPackage;
import com.imagepicker.ImagePickerPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.keyee.datetime.*;  // <--- import
import com.reactnative.ivpusic.imagepicker.PickerPackage;





import java.util.Arrays;
import java.util.List;

import io.realm.react.RealmReactPackage;

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
            new MainReactPackage(),
            new RealmReactPackage(),
            new AlipayPackage(),
            new ReactVideoPackage(),
            new VectorIconsPackage(),
            new ImagePickerPackage(),
            new RNDeviceInfo(),
            new RCTDateTimePickerPackage(),
            new PickerPackage(),
            new AlipayPackage(),
            new ReactVideoPackage(),
            new VectorIconsPackage(),
            new RealmReactPackage(),
            new ImagePickerPackage(),
            new RNDeviceInfo(),
           new RCTDateTimePickerPackage(this), // <------ add here
                    new PickerPackage(),

              new DownloadApkPackage()
      );
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}